﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Content;

namespace Engine.Voxel
{
    public class Ground:BaseMaterial
    {
        public Ground()
        {
            Name = "Ground";
            MaterialColors = new Microsoft.Xna.Framework.Color[] { Color.DarkGreen, Color.Brown, Color.GreenYellow, Color.DarkSeaGreen,Color.Black,Color.Green,Color.DarkOliveGreen,Color.ForestGreen };
        }
        public override void LoadContent(ContentManager contentManager)
        
        {


            Texture2D tex = contentManager.Load<Texture2D>("GroundBase");
            MaterialColors = new Color[tex.Height * tex.Width];
            tex.GetData<Color>(MaterialColors);
            base.LoadContent(contentManager);
        }
    }
}
